import Vue from 'vue'
import Router from 'vue-router'
import Routes from './routes'

Vue.use(Router)
const routes = [...Routes]

export default new Router({
	mode: 'history',
	base: process.env.ROUTE_BASE,
	scrollBehavior: () => ({
		y: 0
	}),
	routes: [
		...routes
	]
})
